package cn.exrick.xboot.flow.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.exrick.xboot.flow.entity.FlowHistory;
import cn.exrick.xboot.flow.entity.FlowTaskInstance;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zy
 * @since 2022-08-31
 */
public interface IFlowHistoryService extends IService<FlowHistory> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param flowHistory
     * @return
     */
    IPage<FlowHistory> selectPage(Page<FlowHistory> page, FlowHistory flowHistory);

    List<FlowHistory> selectList(FlowHistory flowHistory);

    void addFlowHistory(  FlowTaskInstance flowTaskInstance,Integer setpId);

    FlowHistory getFlowHistoryByTaskId(String taskId);

    void histoty();
}